#include "ZenVertex.h"

CZenVertex::CZenVertex()
{
	ZeroMemory(&m_Position, sizeof(D3DVECTOR));
	ZeroMemory(&m_Normal, sizeof(D3DVECTOR));
	ZeroMemory(&m_SpecularColor, sizeof(D3DCOLOR));

	m_DiffuseColor = D3DCOLOR_ARGB(255,255,255,255);
	m_tu = m_tv = 0.0f;
}

CZenVertex::CZenVertex(float  x, float  y, float  z, float nx, float ny, float nz,
					   D3DCOLOR DiffuseColor, D3DCOLOR SpecularColor, float tu, float tv)
{
	m_Position.x = x;
	m_Position.y = y;
	m_Position.z = z;

	m_Normal.x = nx;
	m_Normal.y = ny;
	m_Normal.z = nz;

	m_DiffuseColor  = DiffuseColor;
	m_SpecularColor = SpecularColor;
	
	m_tu = tu;
	m_tv = tv;
}


void CZenVertex::Set(float  x, float  y, float  z, float nx, float ny, float nz, 
				D3DCOLOR DiffuseColor, D3DCOLOR SpecularColor, float tu, float tv)
{
	m_Position.x = x;
	m_Position.y = y;
	m_Position.z = z;

	m_Normal.x = nx;
	m_Normal.y = ny;
	m_Normal.z = nz;

	m_DiffuseColor  = DiffuseColor;
	m_SpecularColor = SpecularColor;
	
	m_tu = tu;
	m_tv = tv;
}

CZenVertex::~CZenVertex()
{
}
